package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {
	// 设置种子数
	rand.Seed(10)
	for i := 1; i < 5; i++ {
		fmt.Println(rand.Intn(10))
	}

	// 设置随机种子数
	rand.Seed(time.Now().Unix())
	for i := 1; i < 5; i++ {
		fmt.Println(rand.Intn(10))
	}
}
